# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pylatex
_pkgname=PyLaTeX
pkgver=1.4.2
pkgrel=3
pkgdesc='A Python library for creating LaTeX files and snippets.'
arch=('any')
url='https://pypi.org/project/PyLaTeX/#files'
license=('MIT')
depends=('python' 'python-ordered-set')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/PyLaTeX-$pkgver.tar.gz")
sha512sums=('b8d8d5712b0e5e32733a5bc6f4c8e195081612ad119df5e1a6b12d084fe27141daedbee41f4da636d7ceb2bcc800695be0a6a65b490d78ae3023e84fe3187ac6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

